<?php

/**
 * Actividades_Contratadas form base class.
 *
 * @method Actividades_Contratadas getObject() Returns the current form's model object
 *
 * @package    citologia
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
 */
abstract class BaseActividades_ContratadasForm extends BaseFormDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'epsips_id'      => new sfWidgetFormInputHidden(),
      'actividades_id' => new sfWidgetFormInputHidden(),
      'meta'           => new sfWidgetFormInputText(),
      'created_at'     => new sfWidgetFormDateTime(),
      'updated_at'     => new sfWidgetFormDateTime(),
    ));

    $this->setValidators(array(
      'epsips_id'      => new sfValidatorChoice(array('choices' => array($this->getObject()->get('epsips_id')), 'empty_value' => $this->getObject()->get('epsips_id'), 'required' => false)),
      'actividades_id' => new sfValidatorChoice(array('choices' => array($this->getObject()->get('actividades_id')), 'empty_value' => $this->getObject()->get('actividades_id'), 'required' => false)),
      'meta'           => new sfValidatorInteger(),
      'created_at'     => new sfValidatorDateTime(),
      'updated_at'     => new sfValidatorDateTime(),
    ));

    $this->widgetSchema->setNameFormat('actividades_contratadas[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'Actividades_Contratadas';
  }

}
